import Vue from 'vue'
import App from './App.vue'

// 导入bootstrap
import  'bootstrap/dist/css/bootstrap.min.css';


Vue.config.productionTip = false;

// 导入vuex
import store from './store'

Vue.filter('dateFmt',function(input){
  const date=new  Date(input*1000);
  const y=date.getFullYear();
  const m=(date.getMonth()+1).toString().padStart(2,0);
  const d=date.getDate().toString().padStart(2,0);
  const h=date.getHours().toString().padStart(2,0);
  const mm=date.getMinutes().toString().padStart(2,0);
  const s=date.getSeconds().toString().padStart(2,0);
  return `${y}-${m}-${d} ${h}:${m}:${s}`;
});

new Vue({
  render: h => h(App),
  store
}).$mount('#app')
